package com.nxn.dinner.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.nxn.core.model.IdEntity;

@Entity
@Table(name = "t_dish")
public class Dish extends IdEntity {

	private String code;
	private String name;
	private String description;
	private VegetableType vegetableType;
	private float price;
	private int serial;
	private String benefit;
	private String prohibition;
	private String iconLocation;
	private String zoomLocation;
	private boolean enable;
	private boolean recommend;
	
	@Column(name = "code")
	public String getCode() {
		return code;
	}
	@Column(name = "name")
		public String getName() {
		return name;
	}
	@Column(name = "description")
	public String getDescription() {
		return description;
	}
	@ManyToOne(cascade={CascadeType.MERGE})
	public VegetableType getVegetableType() {
		return vegetableType;
	}
	@Column(name = "price")
	public float getPrice() {
		return price;
	}
	@Column(name = "serial")
	public int getSerial() {
		return serial;
	}
	@Column(name = "benefit")
	public String getBenefit() {
		return benefit;
	}
	@Column(name = "prohibition")
	public String getProhibition() {
		return prohibition;
	}
	@Column(name = "iconLocation")
	public String getIconLocation() {
		return iconLocation;
	}
	@Column(name = "zoomLocation")
	public String getZoomLocation() {
		return zoomLocation;
	}
	@Column(name = "enable")
	public boolean getEnable() {
		return enable;
	}
	@Column(name = "recommend")
	public boolean getRecommend() {
		return recommend;
	}
	
	public void setCode(String code) {
		this.code = code;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public void setVegetableType(VegetableType vegetableType) {
		this.vegetableType = vegetableType;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public void setSerial(int serial) {
		this.serial = serial;
	}
	public void setBenefit(String benefit) {
		this.benefit = benefit;
	}
	public void setProhibition(String prohibition) {
		this.prohibition = prohibition;
	}
	public void setIconLocation(String iconLocation) {
		this.iconLocation = iconLocation;
	}
	public void setZoomLocation(String zoomLocation) {
		this.zoomLocation = zoomLocation;
	}
	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	public void setRecommend(boolean recommend) {
		this.recommend = recommend;
	}
	
}
